package com.hrms.controller;


import com.hrms.pojo.ApplyRecord;
import com.hrms.service.ApplyRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 * 应聘记录表 前端控制器
 * </p>
 *
 * @author LK
 * @since 2021-10-19
 */
@RestController
@RequestMapping("/applyrecord")
public class ApplyRecordController {

    @Autowired
    ApplyRecordService applyRecordService;

    //加载表格数据
    @RequestMapping("/applyList")
    public HashMap<String,Object> listPage(ApplyRecord a){
        return applyRecordService.select(a);
    }
    //修改
    @RequestMapping("/update")
    public HashMap<String,Object>  update(ApplyRecord a){
        return applyRecordService.update(a);
    }
    //新增
    @RequestMapping("/add")
    public HashMap<String,Object> add(ApplyRecord a){
        return applyRecordService.add(a);
    }

    //删除
    @RequestMapping("/del")
    public HashMap<String,Object> del(Integer id){
        return applyRecordService.del(id);
    }
}

